package top.greatxiaozou.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.greatxiaozou.mapper.TopicMapper;
import top.greatxiaozou.pojo.Topic;
import top.greatxiaozou.service.TopicService;

@Service
public class TopicServiceImpl implements TopicService {
    @Autowired
    TopicMapper topicMapper;

    @Override
    public int addTopic(Topic topic) {
        return topicMapper.addTopic(topic);
    }
}
